<template>
    <van-tabbar v-model="active" class="bg-black font-orange" :border="false">
        <van-tabbar-item name="home" to="/" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item name="profile" to="/profile" icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>
</template>

<script>
    export default {
        name: 'footer-nav',
        data() {
            return {
                active: 'home',
            }
        },
        created() {
            this.active = this.$route.name
        },
        methods:{
        }
    }
</script>

<style scoped>

</style>
